Skip to content

feat: add ISMN validator#2813

Open
SarthakDudhe wants to merge 1 commit into
validatorjs:masterfrom
SarthakDudhe:feat-add-ismn-validator
Open

feat: add ISMN validator#2813
SarthakDudhe wants to merge 1 commit into
validatorjs:masterfrom
SarthakDudhe:feat-add-ismn-validator

Conversation

@SarthakDudhe

Copy link
Copy Markdown

isISMN: Added a new validator isISMN that supports modern 13-digit ISMNs starting with 979-0 and legacy 10-character formats starting with M (case-insensitive), utilizing the standard Luhn-like check digit algorithm.
Documentation & Tests: Updated README.md to document the new validator and references, and added unit tests in test/validators/isISMN.test.js validating format and checksum digits.

@codecov

codecov Bot commented Jul 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (a38f15b) to head (0137bb6).

Additional details and impacted files
@@            Coverage Diff            @@
##            master     #2813   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          114       115    +1     
  Lines         2587      2604   +17     
  Branches       656       659    +3     
=========================================
+ Hits          2587      2604   +17     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant